import instance from "@/axios";

// 资源分页
export const  templatePage = (searchForm)=>instance.post("/template/page",searchForm)

//  资源文件上传
export const  uploadTemplate = (formData)=>instance.post("/template/upload",formData)


//  添加资源信息
export const  addTemplateInfo = (form)=>instance.post("/template/add",form)

// 删除资源信息
export const deleteTemplateInfo = (id)=>instance.delete("/template/delete/"+id)

// 下载资源
export const downloadTemplate = (id)=>instance.post("/template/download/",{id},{responseType:"arraybuffer"})